package com.zc.domain;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;

import java.time.LocalDateTime;

/**
 * @author zhangcheng
 * @date 2022/9/3 15:46
 * @description
 */
public class AlarmCache {

    private Integer alarmCount = 0;
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    private LocalDateTime alarmDateTime;

    public Integer getAlarmCount() {
        return alarmCount;
    }

    public void setAlarmCount(Integer alarmCount) {
        this.alarmCount = alarmCount;
    }

    public LocalDateTime getAlarmDateTime() {
        return alarmDateTime;
    }

    public void setAlarmDateTime(LocalDateTime alarmDateTime) {
        this.alarmDateTime = alarmDateTime;
    }
}
